package com.favccxx.search.domain.datamapper;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author favccxx
 */
@Repository
public interface DataMapperRepo extends MongoRepository<DataMapper, String> {

    /**
     * Find mapper by concept model id
     *
     * @param conceptModelId
     * @return
     */
    DataMapper findByConceptModelId(String conceptModelId);

    /**
     * Find mapper by project id and concept model code
     *
     * @param projectId
     * @param conceptModelCode
     * @return
     */
    DataMapper findByProjectIdAndConceptModelCode(String projectId, String conceptModelCode);

}
